TOOL.Category = "Animation"
TOOL.Name = "Animation Tool"
TOOL.Command = nil
TOOL.ConfigName = "" --Setting this means that you do not have to create external configuration files to define the layout of the tool config-hud 

TOOL.ClientConVar["rec_timer"] = 3

if ( CLIENT ) then
	language.Add('Tool_animation_name', 'Animation Tool')
	language.Add('Tool_animation_desc', 'Animates Things (Duh)')
	language.Add('Tool_animation_0', 'Left Click: Add Entity Track Right Click: Remove Entity Track')
end

function TOOL:LeftClick(trace)
	self:GetOwner():SendLua("AS_GetAnimator():GetControls():AddEnt(LocalPlayer(),false)")
end

function TOOL:RightClick(trace)
	self:GetOwner():SendLua("AS_GetAnimator():GetControls():RemoveEnt(LocalPlayer(),false)")
end

function TOOL.BuildCPanel(panel) 
	panel:AddControl("Header", {Text = "Animation Controls", Description = ""})	
	panel:AddControl("Slider", {Label = "Record Timer", Type = "Integer", Min = "0", Max = "60", Command = "animation_rec_timer"})
	--panel:AddControl("Button", {Label = "Record",Description = "Start Recording",Text = "text","AS_Record"})
end

